<template>
  <view class="container" :style="appThemeStyle">
    <commodity ref="mescrollItem" :list="list" :isCategory="isCategory" :barcode="barcode"/>
  </view>
</template>
<script>
import MescrollCompMixin from '@/uni_modules/mescroll-uni/components/mescroll-uni/mixins/mescroll-comp'
import Search from '@/components/search'
import Commodity from '../components/commodity'

export default {
  name: "index",
  components: {
    Search,
    Commodity
  },
  mixins: [MescrollCompMixin],
  data() {
    return {
      list: [],
      isCategory: false,
      barcode: ''
    }
  },
  onLoad(options) {
    if (options.barcode) this.barcode = options.barcode
  }
}
</script>

<style>
page {
    background: #fff;
}
</style>

<style scoped lang="scss">
.container {

}
</style>
